package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云OSS相关的属性管理[endpoint,accessKeyId,accessKeySecret,bucketName]
 */
@Component
@ConfigurationProperties(prefix = "sky.alioss")// 配置文件中的属性
@Data
public class AliOssProperties {

    private String endpoint; // https://oss-cn-beijing.aliyuncs.com
    private String accessKeyId; // LTAI4Fg7298356789
    private String accessKeySecret;// xxxxxxxxxxxxxxxxx
    private String bucketName; // sky-test-bucket

}
